/*
 * tools.c
 *
 *  Created on: Jan 17, 2016
 *      Author: huanghuanlai
 */
#include<vector>
#include<iostream>
#include<fstream>
#include<errno.h>
#include<string.h>
#include<sstream>

#include "string.h"

using namespace dounine_string;
using namespace std;

namespace dounine_tools{
	#define POINT '.'

	vector<string> read_file(const string& filename){
		vector<string> vt;
		ifstream file;
		file.open(filename);
		if(!file){
			cerr<<"file open err"<<strerror(errno)<<endl;
		}
		char line[50];
		while(file.getline(line,sizeof(line))){
			string lis(line);
			vt.push_back(lis);
		}
		file.clear();
		file.close();
		return vt;
	}

}
